

#include "util.h"
#include <cstdlib>
#include <ctime>


std::string RandomUserName(int length)
{
	static int seed = 0;
	srand(seed++ * time(nullptr) % 10000);
	srand(rand() % 10000 * (seed++) + rand());
	std::string result;
	for (int index = 0; index < length; index++)
	{
		result += (rand() % 2 == 0 ? 'A':'a') + (rand() % 26); 
	}
	return result;
}

